package com.example.online_order.Eception;


import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor

public class SystemException extends RuntimeException{


    ExceptionType code;


    public SystemException(ExceptionType code, String message) {
        super(message);
        this.code = code;
    }

    public SystemException(ExceptionType code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
